import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import axios from "axios"
import locale from 'element-ui/lib/locale/lang/en' //引入element ui中的i18n
import i18n from '@/language/index.js' //引入mian.js中的i18n
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//是否引入字体
// import "@/assets/fontofdiscover/font.css";
import "@/style/index.scss";
import tabber from '@/components/tabbar/index.vue'
import Footer from '@/components/footer/index.vue'

Vue.component('Tabber', tabber)
Vue.component('Footer', Footer)


Vue.config.productionTip = false;
Vue.prototype.$axios = axios
Vue.use(ElementUI, { locale });
import '@/permission' 
// 按需引入然后注册在vue原型上
import {
  Message
} from 'element-ui';
Vue.prototype.$message = Message;
import moment from 'moment';
moment().format();
new Vue({
  router,
  store,
   i18n, //将i18n挂载到vue全局使用
  render: (h) => h(App),
}).$mount('#app');
